package com.jctrip.hotel.management.model.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "主页信息-返回值")
@Data
@Builder
public class GetHomepageResult {
    @ApiModelProperty(value = "用户名")
    private String realName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "使用天数")
    private Long useDay;

    @ApiModelProperty(value = "最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;

    @ApiModelProperty(value = "今日销量额")
    private Long totalSalesToday;

    @ApiModelProperty(value = "昨日销量额")
    private Long totalSalesYesterday;

    @ApiModelProperty(value = "今日间夜数")
    private Long totalRMNight;
}
